﻿using AIVision.Model.EntityModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.Repository.Entitys
{
    public class DefectItem
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 区域索引
        /// </summary>
        public int AreaIndex { get; set; }
        /// <summary>
        /// 缺陷名称
        /// </summary>
        public string DefectName { get; set; }
        /// <summary>
        /// 缺陷代码
        /// </summary>
        public string DefectCode { get; set; }
        /// <summary>
        /// 缺陷索引
        /// </summary>
        //public int DefectIndex { get; set; }
        /// <summary>
        /// 缺陷最小尺寸
        /// </summary>
        public int MinArea { get; set; }
        /// <summary>
        /// 缺陷最小尺寸
        /// </summary>
        public int MinWidth { get; set; }
        /// <summary>
        /// 缺陷最小尺寸
        /// </summary>
        public int MinHeight { get; set; }
        /// <summary>
        /// 最大结构因素
        /// </summary>
        public int MaxStructFactor { get; set; }

        public int CheckStationId { get; set; }
        [ForeignKey("CheckStationId")]
        public virtual CheckStation CheckStation { get; set; }
    }
}
